export default {
  totalCount(state) {
    return state.cartFoods.reduce((total, food) => {
      return total + food.count
    }, 0)
  },
  totalPrice(state) {
    return state.cartFoods.reduce((total, food) => {
      return total + food.price * food.count
    }, 0)
  },
}
